var express = require('express');
var router = express.Router();
var userModel = require('../service/userService')
var api = require(global.__base+'/api/api')

router.get(api.userApi.user.list, async function (req, res, next) {
    let result = await userModel.getUserList();
    res.json(result);
});
router.post(api.userApi.user.register, async function (req, res, next) {
    let result = await userModel.insertUser();
    res.json(result);
})
module.exports = router;